package com.ruoyi.purchase.pojo;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 采购申请对象 t_purchase_apply
 *
 * @author ruoyi
 * @date 2024-10-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PurchaseApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 采购申请编号 */
    @Excel(name = "采购申请编号")
    private String purchaseApplyNo;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Integer applyUserId;

    /** 审核人id */
    @Excel(name = "审核人id")
    private Integer examineUserId;

    /** 需求的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "需求的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyDate;

    /** 审核状态0未审核;1审核通过;2审核驳回 */
    @Excel(name = "审核状态")
    private Integer status;

    /**
     * 申请人名称
     */
    private String applyUserName;

    /**
     * 申请部门名称
     */
    private String deptName;

    /**
     * 审核人名称
     */
    private String examineUserName;

    private List<PurchaseApplyMaterial> list;
}